<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//echo $cb_op;
$resultat=0;
if($cb_op==1) {
    $resultat = $nb1 + $nb2;
} elseif ($cb_op==2) {
    $resultat = $nb1 - $nb2;
} elseif ($cb_op==3) {
    $resultat = $nb1 * $nb2;   
} else {
    $resultat = $nb1 / $nb2;   
}
header("Location:exercice_2.php?toto=$resultat&n1=$nb1&n2=nb2");